import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [uni()],
  resolve: {
    // 定义别名
    alias: [
      { find: '@', replacement: './src' },
    ]
  },
  server: {
    proxy: {
      '/images': {
        changeOrigin: true,
        target: 'http://localhost:5000'
      },
    }
  }
});
